<?php
include("connect.php");
$ActID=$_REQUEST['ActID'];
$sql="SELECT ActCon,StartTime,EndTime FROM Activities WHERE ActID=$ActID";
mysqli_query($conn,"set names utf8");
$result=mysqli_query($conn,$sql);
$data=Array();
class activity{
	public $ActCon;
	public $StartTime;
	public $EndTime;
}
while($row=mysqli_fetch_array($result,MYSQL_ASSOC)){
	$act=new activity();
	$act->ActCon=urlencode($row["ActCon"]);
	$act->StartTime=urlencode($row["StartTime"]);
	$act->EndTime=urlencode($row["EndTime"]);
	$data[]=$act;
}


$json=json_encode($data);
echo urldecode($json);
?>